﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'proc_cm_DeleteBlogEntry')
BEGIN
    PRINT 'Dropping Procedure proc_cm_DeleteBlogEntry'
    DROP  Procedure  proc_cm_DeleteBlogEntry
END
GO

PRINT 'Creating Procedure proc_cm_DeleteBlogEntry'
GO

CREATE PROCEDURE [dbo].[proc_cm_DeleteBlogEntry]
	@pBlogId uniqueidentifier
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [dbo].[tbl_blog_entry] 
	WHERE [blog_id] = @pBlogId
END
GO

GRANT EXEC ON dbo.proc_cm_DeleteBlogEntry TO PUBLIC
GO
